#include "global.h"

QString gateUrlPrefix = "";

std::function<void(QWidget*)> repolish =[](QWidget *w){
    w->style()->unpolish(w);
    w->style()->polish(w);
};


std::function<QString(QString)> xorString = [](QString input){
    QString result = input;
    int length = result.length() % 255;
    for(int i=0;i<length;i++){
        result[i] = QChar(
                    static_cast<ushort>(input[i].unicode()^
                                        static_cast<ushort>(length))
                    );
    }
    //对长度进行异或操作
    return result;
};
